package com.practice.json和实体属性名不一致时的转化问题;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @program: tenghw-practice-demo
 * @author: tenghw
 * @create: 2024-10-10 19:18
 * @Version 1.0
 * @description:
 **/
@Data
public class Student {
    private Integer id;
    @JSONField(name = "stu_name")
    private String stuName;
    @JSONField(name = "stu_price")
    private BigDecimal stuPrice;
}